﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LS_JJZXCHFCRWModeWebForm.aspx.cs" Inherits="Anke.SHManage.Web.Reports.LS_JJZXCHFCRWModeWebForm" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>急救中心迟缓放车任务流水日报表</title>
    <script src="../Content/EasyUI/jquery.js"></script>
    <script src="../Content/EasyUI/jquery.easyui.js"></script>
    <script src="../Content/EasyUI/locale/easyui-lang-zh_CN.js"></script>
    <link href="../Content/EasyUI/themes/icon.css" rel="stylesheet" />
    <link href="../Content/EasyUI/themes/default/easyui.css" rel="stylesheet" />
    <script src="../Scripts/jquery.AnkeExtend.js"></script>
    <script type="text/javascript">
        //迟缓放车任务流水就是对急救中心任务流水日报表的一个数据筛选，页面布局及RDLC、后端代码基本一致,原样移植过来的
        //单独启aspx页面，是为了后期维护方便，各自独立开来

        //页面加载
        $(document).ready(function () {
            DisableBackspace();
            //$.InitDateTime();
            fillCombobox();

        });

        function fillCombobox() {
            //取所属分中心的下拉框的值
            $("#Center").combobox({
                url: "../BB/AllDictionary/GetCenterName",
                valueField: 'ID',
                textField: 'Name',
                editable: false,
                multiple: true,
                prompt: '--请选择--',
                onSelect: function (rec) {
                    var ids = $('#Center').combobox('getValues');
                    //根据分中心取分站
                    $("#Station").combobox({
                        url: "../BB/AllDictionary/GetSationName?centerID=" + ids,
                        method: 'POST',
                        valueField: 'ID',
                        textField: 'Name',
                        multiple: true,
                        editable: false,
                        onSelect: function () {
                            $('#Station').combobox('getValues')
                        },
                        onUnselect: function () {
                            $('#Station').combobox('getValues')
                        }
                    });
                    $("#Station").combobox('clear');
                },
                onUnselect: function (rec) {
                    var ids = $('#Center').combobox('getValues');
                    //根据分中心取分站
                    $("#Station").combobox({
                        url: "../BB/AllDictionary/GetSationName?centerID=" + ids,
                        method: 'POST',
                        valueField: 'ID',
                        textField: 'Name',
                        multiple: true,
                        editable: false
                        //onSelect: function () {
                        //    //$('#Station').combobox('getValues')
                        //},
                        //onUnselect: function () {
                        //    $('#Station').combobox('getValues')
                        //}
                    });
                    // $("#Station").combobox('setValues', '');
                    $("#Station").combobox('clear');
                },
            });

            var centers = $('#Center').combobox('getValues');
            $("#Station").combobox({
                url: "../BB/AllDictionary/GetSationName?centerID=" + centers,
                method: 'POST',
                valueField: 'ID',
                textField: 'Name',
                multiple: true,
                editable: false,
                onSelect: function () {
                    $('#Station').combobox('getValues')
                },
                onUnselect: function () {
                    $('#Station').combobox('getValues')
                }
            });


            //取病种分类           
            var urlstr = "../BB/AllDictionary/GetDiseasesClassifications";
            $.EUIcombobox("#DiseasesClassification", {
                url: urlstr,
                valueField: 'Name',
                textField: 'Name',
                editable: false,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]
            });
            //取事件类型
            var urlstr = "../BB/AllDictionary/GetEventType";
            $.EUIcombobox("#EventType", {
                url: urlstr,
                valueField: 'Name',
                textField: 'Name',
                editable: false,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]
            });
            //$('#EventType').combobox({
            //    editable: false,
            //    multiple: true,
            //    onSelect: function () {
            //        $('#HiddenForEventType').val($('#EventType').combobox('getText'));
            //    }
            //})
            //$('#EventType').combobox('clear');

            //取病情分类           
            var urlstr = "../BB/AllDictionary/GetIllnessClassification";
            $.EUIcombobox("#IllnessClassification", {
                url: urlstr,
                valueField: 'Name',
                textField: 'Name',
                editable: false,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]
            });

            //取病种判断           
            var urlstr = "../BB/AllDictionary/GetIllnessClassification";
            $.EUIcombobox("#IllnessClassification", {
                url: urlstr,
                valueField: 'Name',
                textField: 'Name',
                editable: false,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]
            });
            ////取送往地点           
            //var urlstr = "../BB/AllDictionary/GetHospital";
            //$.EUIcombobox("#SendAddress", {
            //    url: urlstr,
            //    valueField: 'Name',
            //    textField: 'Name',
            //    //editable: true,
            //    value: '--请选择--',
            //    OneOption: [{
            //        ID: "",
            //        Name: "--请选择--"
            //    }],
            //    onChange: function (param) {

            //    }

            //});
            //取送往地点           
            var urlstr = "../BB/AllDictionary/GetArea";
            $.EUIcombobox("#Area", {
                url: urlstr,
                valueField: 'Name',
                textField: 'Name',
                editable: true,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]
            });

            //取呼救类型
            var urlstr = "../BB/AllDictionary/GetHelpType";
            $.EUIcomboboxForReport("#HelpType", {
                url: urlstr,
                valueField: 'Name',
                textField: 'Name',
                editable: false,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]
            });
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <table>
            <tr>
                <td style="text-align: center">查询时间：</td>
                <td>
                    <asp:TextBox ID="StartDate" class="easyui-datetimebox" Style="width: 150px" runat="server" editable="false"></asp:TextBox>
                </td>
                <td style="text-align: center">至</td>
                <td>
                    <asp:TextBox ID="EndDate" class="easyui-datetimebox" Style="width: 150px" runat="server" editable="false"></asp:TextBox>
                </td>
                <td style="text-align: center">&nbsp; 医生：</td>
                <td>
                    <asp:TextBox ID="DoctorAndNurse" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                </td>
                <td style="text-align: center">&nbsp; 司机：</td>
                <td>
                    <asp:TextBox ID="Driver" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                </td>
                <td style="text-align: center">&nbsp; 担架员：</td>
                <td>
                    <asp:TextBox ID="StretcherBearersI" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="text-align: center">&nbsp; 分中心：</td>
                <td>
                    <asp:TextBox ID="Center" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>
                </td>
                <td style="text-align: center">&nbsp; 分站：</td>
                <td>
                    <asp:TextBox ID="Station" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>
                </td>
                <td style="text-align: center">&nbsp; 患者姓名：</td>
                <td>
                    <asp:TextBox ID="Name" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                </td>
                <td style="text-align: center">&nbsp; 调度员：</td>
                <td>
                    <asp:TextBox ID="Dispatcher" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                </td>
                <td style="text-align: center">&nbsp; 现场地址：</td>
                <td>
                    <asp:TextBox ID="LocalAddress" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="text-align: center">&nbsp; 主诉：</td>
                <td>
                    <asp:TextBox ID="AlarmReason" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                </td>
                <td style="text-align: center">&nbsp; 判断：</td>
                <td>
                    <asp:TextBox ID="MedicalJudge" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                </td>
                <td style="text-align: center">&nbsp; 送往地点：</td>
                <td>
                    <asp:TextBox ID="SendAddress" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                </td>
                <td style="text-align: center">&nbsp; 区域：</td>
                <td>
                    <asp:TextBox ID="Area" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>
                </td>
                <td>出车结果：</td>
                <td>
                    <asp:HiddenField ID="HiddenForResult" runat="server" />
                    <select id="Result" class="easyui-combobox" style="width: 150px" data-options="editable:true" runat="server">
                        <option value="--请选择--">--请选择--</option>
                        <option value="正常结束">正常结束</option>
                        <option value="放空车">放空车</option>
                        <option value="中止任务">中止任务</option>
                        <option value="其他">其他</option>
                        <%--<option value="担架工">担架工</option>--%>
                    </select>
                </td>
            </tr>
            <tr>
                <td>电话受理时间大于(秒)：</td>
                <td>
                    <asp:TextBox ID="Time" class="easyui-numberbox" Style="width: 150px" runat="server"></asp:TextBox>
                </td>

                <td style="text-align: center">&nbsp;班次：</td>
                <td>
                    <asp:HiddenField ID="HiddenFielBanCi" runat="server" />
                    <select id="BanCi" class="easyui-combobox" style="width: 150px" data-options="editable:true" runat="server">
                        <option value="--请选择--">--请选择--</option>
                        <option value="白班">白班</option>
                        <option value="夜班">夜班</option>
                    </select>
                </td>
                <td style="text-align: center">&nbsp; 呼救类型：</td>
                <td>
                    <asp:TextBox ID="HelpType" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>
                </td>
                <td align="center" valign="left" width="8%">&nbsp;&nbsp;&nbsp;&nbsp;
               
                    <%--<td>--%>
                    <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" />
                </td>
            </tr>
        </table>
        <div style="background-color: #fafafa; border-left: 1px solid scrollbar; overflow: hidden; height: 100%;">
            <rsweb:ReportViewer ID="ReportViewer1" runat="server" Width="100%" Height="100%"  SizeToReportContent="True"></rsweb:ReportViewer>
        </div>
    </form>
</body>
</html>
